package com.mp.approvalreq.entity;

import java.util.List;

/**
 * Created by liuqi on 2018/11/19.
 */
public interface DuplicateStrategy {

	/**
	 * 仅保留最后一个元素
	 */
	int REMAIN_LAST_ITEM = 0;

	/**
	 * 仅保留第一个元素
	 */
	int REMAIN_FIRST_ITEM = 1;

	/**
	 * 仅连续出现时去重
	 */
	int REMOVE_FOLLOW_ITEM = 2;

	/**
	 * 不去重
	 */
	int NO_REMOVE = 3;

	List<Flow> removeRepeat(List<Flow> flows) throws Throwable;


}
